/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.webbapps.cormac_susilo.bootstrap;

import edu.webbapps.cormac_susilo.core.FrameRegistry;
import edu.webbapps.cormac_susilo.core.RunRegistry;
import edu.webbapps.cormac_susilo.core.UserRegistry;
import java.io.Serializable;
import javax.enterprise.context.ApplicationScoped;

/**
 * Wraps the Bootstrapper as an application bean
 * Will be injected into session beans
 * @author tor
 */
@ApplicationScoped
public class BootWrap implements Serializable {
    private CormacBootstrap instance = CormacBootstrap.getInstance();

    public UserRegistry getUserRegistry() {
        return instance.getUserRegistry();
    }
    
    public RunRegistry getRunRegistry() {
        return instance.getRunRegistry();
    }

    public FrameRegistry getFrameRegistry() {
        return instance.getFrameRegistry();
    }
}
